package com.example.JavaWebApi.service.systemService;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.JavaWebApi.core.commonmodel.ResponseModel;
import com.example.JavaWebApi.model.entity.systemEntity.Userinfo;
import com.example.JavaWebApi.model.querymodel.SystemQueryModel.AuthUserQuery;
import com.example.JavaWebApi.model.querymodel.SystemQueryModel.LoginData;
import com.example.JavaWebApi.model.querymodel.SystemQueryModel.UserInfoQuery;

/**
 *
 * @ClassName: UserinfoService
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @author 杨泽
 * @date 2022-06-15
 */
public interface IUserinfoService  {
 ResponseModel<String> login(LoginData loginData);
 Page<Userinfo> getUserList(UserInfoQuery query);
 Boolean create(Userinfo userinfo);
 boolean update(Userinfo userinfo);
 boolean delete(String Id);
 IPage<Userinfo> getAuthorizationUserList(AuthUserQuery query);
 Boolean updateUserPwd(String oldPwd,String newPwd);
 ResponseModel<String> updatePersonalInfo(Userinfo user);

 /**
  * Description: 人脸登录
  * @param face
  * @return com.example.JavaWebApi.core.commonmodel.ResponseModel<java.lang.String>
  * @author 杨泽
  * @date 2023/6/27 14:30
  */
 ResponseModel<String> faceLogin(String face);
 /**
  * Description: 根据额外信息再次认证用户
  * @param requestId 上次的搜索id
  * @param message 额外信息
  * @return com.example.JavaWebApi.core.commonmodel.ResponseModel<java.lang.String>
  * @author 杨泽
  * @date 2023/6/27 11:38
  */

 ResponseModel<String> reCertification(String requestId,String message);
}